package com.ems.sys.pojo;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.lang.String;
/****
 * @Author:传智播客
 * @Description:Emlpoyee构建
 * @Date 2019/6/14 19:13
 *****/
@Table(name="employee")
public class Employee implements Serializable {

	@Id
	@Column(name = "eId")
	private String eId;//工员id

	@Column(name = "dNum")
	private String dNum;//部门编号

	@Column(name = "pNum")
	private String pNum;//职位编号

	@Column(name = "eName")
	private String eName;//员工名称

	@Column(name = "card")
	private String card;//身份证
	@DateTimeFormat(pattern = "yyyy-MM-dd") //入参
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") //出参
	@Column(name = "birthday")
	private Date birthday;//生日

	@Column(name = "sex")
	private String sex;//性别

	@Column(name = "phone")
	private String phone;//电话号码

	private Department department;

	private Position position;



	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public Position getPosition() {
		return position;
	}

	public void setPosition(Position position) {
		this.position = position;
	}


	public String geteId() {
		return eId;
	}

	public void seteId(String eId) {
		this.eId = eId;
	}

	public String getdNum() {
		return dNum;
	}

	public void setdNum(String dNum) {
		this.dNum = dNum;
	}

	public String getpNum() {
		return pNum;
	}

	public void setpNum(String pNum) {
		this.pNum = pNum;
	}

	public String geteName() {
		return eName;
	}

	public void seteName(String eName) {
		this.eName = eName;
	}

	public String getCard() {
		return card;
	}

	public void setCard(String card) {
		this.card = card;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

}